
<!--<div ng-controller="product_statistics">
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h1 class="m-n font-thin h3 ng-binding">产品统计列表</h1>
    </div>
    <div class="pull-left col-sm-12" style="background-color: #ffffff ;margin: 0px 15px;margin-top: 10px">
        <div class=" pull-left" style="text-align:right; margin: 5px 0 ; width: 27%">
            产品编号：
            <input type="text" ng-model="id">
        </div>
                <div class=" pull-left" style="text-align:right; margin: 5px 0; width: 27%">
            产品名称：
            <input type="text" ng-model="product_name" class="text">
        </div>
                <div class=" pull-left" style="text-align:right; margin: 5px 5px; width: 24%">
            产品类型：
            <select name="" id="" style="width: 100px;height: 26px" ng-model="product_type">
                <option value="">未选择</option>
                <option value="0">周边</option>
                <option value="1">国内长线</option>
                <option value="2">当地</option>
                <option value="3">出境当地参团</option>
                <option value="4">出境短线</option>
                <option value="5">出境长线</option>
            </select>
        </div>
        <div class=" pull-left" style="text-align:right; margin: 5px 0; width: 27%">
            供应商产品名称：
            <input type="text" ng-model="supplier_product_name">
        </div>
        <div class=" pull-left" style="text-align:right; margin: 5px 0; width: 27%">
            出发城市：
            <input type="text" ng-model="start_city_arr">
        </div>
                <div class="pull-left" style="text-align:right; margin: 5px 5px; width: 24%">
            产品状态：
            <select name="" id="" style="width: 100px;height: 26px" ng-model="product_state">
                <option value="">未选择</option>
                <option value="0">草稿</option>
                <option value="1">正在审核</option>
                <option value="2">已上架</option>
                <option value="3">已下架</option>
                <option value="4">已驳回</option>       
            </select>
        </div>
    <div style="margin-top: 15px;margin-right: 20px">
         <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="search()">搜索</button>
         <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="tostatisticsall()">统计</button>
    </div>
    </div>
    <div>
         <div class="col-sm-12 " style="border-bottom: 1px solid #eaeff0;margin-bottom: 25px">
           <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" style="display: table; width: 100%;table-layout:fixed;">
               <thrad>
                <tr >
                    <th style="width: 15%;text-align:center;vertical-align:middle;">产品编号</th>
                    <th style="width: 16%;text-align:center;vertical-align:middle;">主名称/副名称</th>
                    <th style="width: 14%;text-align:center;vertical-align:middle;">供应商产品名称</th>
                    <th style="width: 7%;text-align:center;vertical-align:middle;">产品类型</th>
                    <th style="width: 9%;text-align:center;vertical-align:middle;">修改时间</th>
                    <th style="width: 15%;text-align:center;vertical-align:middle;">出发/目的城市</th>                 
                    <th style="width: 7%;text-align:center;vertical-align:middle;">产品状态</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
                </thrad>
                <tbody ng-repeat="info in a "> 
                <tr >
                    <td  ng-click="show($index)"style="width: 15% ;text-align:center;vertical-align:middle;">{{info.id}}</td>               
                    <td  ng-click="show($index)"style="width: 16% ;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info.product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_sub_name}}">{{info.product_sub_name}}</div></td>
                    <td  ng-click="show($index)"style="width: 10%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.supplier_product_name}}">{{info.supplier_product_name}}</div></td>
                    <td  ng-click="show($index)"style="width: 10% ;text-align:center;vertical-align:middle;">{{info.product_type_name}}</td>
                    <td  ng-click="show($index)"style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.update_time}}</td>
                    <td  ng-click="show($index)"style="width: 7%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.start_city_arr}}">{{info.start_city_arr}}</div><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info.end_city}}</div></td>                
                    <td  ng-click="show($index)"style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.product_state_name=="待上架"?"正在审核":info.product_state_name}}</td>                  
                    <td  style="width: 10%;text-align:center;" >
                         <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">详情</button>
                            </div>
                             <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-warning btn-xs" ng-click="tostatistics($index)" >统计</button>
                            </div>
                    </td>         
                </tr>
                <tr ng-repeat="info2 in info.codeInfoList" ng-show="b==1&&c==$parent.$index">
                    <td  ng-click="show()"style="width: 15% ;text-align:center;vertical-align:middle;background-color:white">{{info2.id}}</td>
                    <td  ng-click="show()"style="width: 16% ;text-align:center;vertical-align:middle;background-color:white"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info2.product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_sub_name}}">{{info2.product_sub_name}}</div></td>
                    <td  ng-click="show()"style="width: 10%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;background-color:white"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;background-color:white" title="{{info.supplier_product_name}}">{{info2.supplier_product_name}}</div></td>
                    <td  ng-click="show()"style="width: 10% ;text-align:center;vertical-align:middle;background-color:white">{{info2.product_type_name}}</td>
                    <td  ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;background-color:white">{{info2.update_time}}</td>
                    <td  ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;background-color:white"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;background-color:white" title="{{info.start_city_arr}}">{{info2.start_city_arr}}</div><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;background-color:white" title="{{info.end_city}}">{{info2.end_city}}</div></td>                
                    <td  ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;background-color:white">{{info2.product_state_name=="待上架"?"正在审核":info2.product_state_name}}</td>                  
                    <td  style="width: 10%;text-align:center;background-color:white" >
                         <div class="pull-left" style="width: 50%">
                            <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($parent.$index,$index)">详情</button>
                        </div>
                            
                    </td>                      
                </tr>            
                </tbody>
            </table>
        </div>
    </div>
    <div class="text-right" style="background-color: white">
    <pagination 
        total-items="totalItems" 
        ng-model="currentPage" 
        ng-change="pageChanged()"
        previous-text="上一页"
        next-text="下一页"
        first-text="首页"
        last-text="尾页"
        max-size="5"
        boundary-links="true"
        rotate="false"
        items-per-page="itemsPerPage"
        class="m-t-none m-b"></pagination>
    </div>
</div>-->


<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="id" placeholder="产品编号"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="product_name" placeholder="产品名称">
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.product_type" theme="bootstrap" >
                <ui-select-match placeholder="请选择产品类型">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in ptarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="supplier_product_name" placeholder="供应商产品名称"> 
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.product_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择产品状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in psarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="start_city_arr" placeholder="出发城市"> 
        </div>
    </div>

    <div class="row mt10">     
        <div class="col-sm-2 col-sm-offset-2 pull-right">
            <button class="btn btn-block btn-info" ng-click="search()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
            <thead>
                <tr>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">产品编号</th>
                    <th class=" text-center" style="width: 16%;text-align:center;vertical-align:middle;">主名称/副名称</th>
                    <th class=" text-center" style="width: 14%;text-align:center;vertical-align:middle;">供应商产品名称</th>
                    <th class=" text-center" style="width: 8%;text-align:center;vertical-align:middle;">产品类型</th>
                    <th class=" text-center" style="width: 9%;text-align:center;vertical-align:middle;">修改时间</th>
                    <th class=" text-center" style="width: 13%;text-align:center;vertical-align:middle;">出发/目的城市</th>
                    <th class=" text-center" style="width: 8%;text-align:center;vertical-align:middle;">产品状态</th>                   
                    <th class=" text-center" style="width: 10%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
            </thead>
            <tbody ng-repeat="info in a">
                <tr >
                    <td ng-click="show($index)"class="text-center" style="width: 15%;text-align:center;vertical-align:middle;">{{info.id}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 16%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info.product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_sub_name}}">{{info.product_sub_name}}</div></td>
                    <td ng-click="show($index)"class="text-center" style="width: 14%;text-align:center;vertical-align:middle;">{{info.supplier_product_name}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 7%;text-align:center;vertical-align:middle;">{{info.product_type_name}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 9%;text-align:center;vertical-align:middle;">{{info.update_time}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.start_city_arr}}">{{info.start_city_arr}}</div><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info.end_city}}</div></td>
                    <td ng-click="show($index)"class="text-center" style="width: 7%;text-align:center;vertical-align:middle;">{{info.product_state_name=="待上架"?"正在审核":info.product_state_name}}</td>                         
                    <td class="text-center"style="width: 10%;text-align:center;vertical-align:middle;">
                        <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">详情</button>
                            </div>
                             <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-warning btn-xs" ng-click="tostatistics($index)" >统计</button>
                            </div>
                    </td>
                </tr>
                <tr ng-repeat="info2 in info.codeInfoList" ng-show="b==1&&c==$parent.$index" style="background-color: #f0f0f0">
                    <td  class="text-center"ng-click="show()"style="width: 15%;text-align:center;vertical-align:middle;">{{info2.id}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 16%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info2.product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_sub_name}}">{{info2.product_sub_name}}</div></td>
                    <td  class="text-center"ng-click="show()"style="width: 14%;text-align:center;vertical-align:middle;">{{info2.supplier_product_name}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;">{{info2.product_type_name}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 9%;text-align:center;vertical-align:middle;">{{info2.update_time}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.start_city_arr}}">{{info2.start_city_arr}}</div><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info2.end_city}}</div></td>                
                    <td  class="text-center"ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;">{{info2.product_state_name=="待上架"?"正在审核":info2.product_state_name}}</td>                  
                    <td  style="text-align:center;width: 10%;vertical-align:middle;" >
                         <div class="pull-left " style="width: 50%;vertical-align:middle">
                            <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($parent.$index,$index)">详情</button>
                        </div>
                             <!--<div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-warning btn-xs" ng-click="tostatistics($index)" >统计</button>
                            </div>-->
                    </td>
                   
                           
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination 
                total-items="totalItems" 
                ng-model="currentPage" 
                ng-change="pageChanged()"
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                max-size="5"
                boundary-links="true"
                rotate="false"
                items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>